package com.ele.client.home;

import com.github.gwtbootstrap.client.ui.*;
import com.google.gwt.core.shared.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.FlowPanel;
import com.google.gwt.user.client.ui.Image;
import com.google.gwt.user.client.ui.Widget;

public class HomeView extends Composite implements HomePresenter.Display {

    interface DefaultUiBinder extends UiBinder<Widget, HomeView> {}
    private static DefaultUiBinder uiBinder = GWT.create(DefaultUiBinder.class);

    @UiField
    PageHeader pageHeader;
    @UiField
    FlowPanel wordsPanel;
    @UiField
    ControlLabel questionLabel;
    @UiField
    TextBox answerTextBox;
    @UiField
    Button button;
    @UiField
    ControlGroup controlGroup;
    @UiField
    HelpBlock helpBlock;
    @UiField
    Image image;

    public HomeView() {
        initWidget(uiBinder.createAndBindUi(this));
    }

    @Override
    public PageHeader getPageHeader() {
        return pageHeader;
    }

    @Override
    public FlowPanel getWordsPanel() {
        return wordsPanel;
    }

    @Override
    public ControlLabel getQuestionLabel() {
        return questionLabel;
    }

    @Override
    public TextBox getAnswerTextBox() {
        return answerTextBox;
    }

    @Override
    public Button getButton() {
        return button;
    }

    @Override
    public ControlGroup getControlGroup() {
        return controlGroup;
    }

    @Override
    public HelpBlock getHelpBlock() {
        return helpBlock;
    }

    @Override
    public Image getImage() {
        return image;
    }
}
